From b19a923ff24c589bac54ce324408da1de4696242 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 21 May 2010 05:20:36 +0000 Subject: [PATCH] Pivot the interpretation of expiry time at 10 years (1980) instead of 1 month. --- includes/BagOStuff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/BagOStuff.php b/includes/BagOStuff.php index 8cd5d543ca..563127dc78 100644 --- a/includes/BagOStuff.php +++ b/includes/BagOStuff.php @@ -154,7 +154,7 @@ abstract class BagOStuff { * Convert an optionally relative time to an absolute time */ protected function convertExpiry( $exptime ) { - if ( ( $exptime != 0 ) && ( $exptime < 3600 * 24 * 30 ) ) { + if ( ( $exptime != 0 ) && ( $exptime < 86400 * 3650 /* 10 years */ ) ) { return time() + $exptime; } else { return $exptime; -- 2.20.1